Problem Note 52963: The error "The %LOCAL statement is not valid in open code" occurs when you submit a user-written adapter staging job
In SAS® IT Resource Management 3.4, the following error occurs when you submit a user-written adapter staging job:
678 %LET ADMIN=Adm9084;
679 LIBNAME Adm9084 ("/sasdata/admin") ACCESS=READONLY;
NOTE: Libref ADM9084 was successfully assigned as follows:
Levels: 1
Engine(1): V9
Physical Name(1): /sasdata/admin
ERROR: The %LOCAL statement is not valid in open code.
680 %local oldfmt;
681 %let oldfmt=%sysfunc(getoption(FMTSEARCH));
682 options insert=(fmtsearch = &ADMIN..FORMATS);
683 options nofmterr;
The error is a result of an erroneous, auto–generated %LOCAL statement in SAS IT Resource Management.
To circumvent this error, modify the SAS IT Resource Management User-Written Staging transformation, as follows:
- From the IT Data Marts tree in SAS IT Resource Management, double-click the job that is to contain the User-Written Staging transformation. By default, the job opens on the Diagram tab of the Job Editor window.
- Click the Code tab in the Job Editor window. This tab enables you to manager the code for the transformation before you execute a job.
- Change the selection for Code generation mode to User written body.
- Locate the following SAS statement in the generated code and delete it:
%local oldfmt;
- Save the SAS IT Resource Management staging job.
Operating System and Release Information
SAS System | SAS IT Resource Management | z/OS | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
Microsoft® Windows® for x64 | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
Microsoft Windows 8 Enterprise 32-bit | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
Microsoft Windows 8 Enterprise x64 | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
Microsoft Windows 8 Pro 32-bit | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
Microsoft Windows 8 Pro x64 | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
Microsoft Windows 8.1 Enterprise 32-bit | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
Microsoft Windows 8.1 Enterprise x64 | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
Microsoft Windows 8.1 Pro | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
Microsoft Windows 8.1 Pro 32-bit | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
Microsoft Windows Server 2008 | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
Microsoft Windows Server 2008 R2 | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
Microsoft Windows Server 2008 for x64 | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
Microsoft Windows Server 2012 Datacenter | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
Microsoft Windows Server 2012 R2 Datacenter | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
Microsoft Windows Server 2012 R2 Std | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
Microsoft Windows Server 2012 Std | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
Windows 7 Enterprise 32 bit | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
Windows 7 Enterprise x64 | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
Windows 7 Home Premium 32 bit | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
Windows 7 Home Premium x64 | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
Windows 7 Professional 32 bit | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
Windows 7 Professional x64 | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
Windows 7 Ultimate 32 bit | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
Windows 7 Ultimate x64 | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
64-bit Enabled AIX | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
64-bit Enabled Solaris | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
HP-UX IPF | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
Linux for x64 | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
Solaris for x64 | 3.4 | 3.5 | 9.4 TS1M1 | 9.4 TS1M2 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2014-06-13 14:44:20 |
Date Created: | 2014-05-12 15:33:23 |